package cn.lanqiao.ui;

import java.awt.BorderLayout;
import java.awt.FlowLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JDialog;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import java.awt.Color;
import javax.swing.JScrollPane;
import javax.swing.JTable;
import javax.swing.table.DefaultTableModel;
import javax.swing.JLabel;
import javax.swing.JTextField;

public class HistoryAccountJDialog extends JDialog {
	private JTable table;
	private JTextField textField;
	public HistoryAccountJDialog() {
		setForeground(Color.BLACK);
		setTitle("历史账号");
		setBounds(100, 100, 508, 381);
		getContentPane().setLayout(null);
		{
			JPanel panel = new JPanel();
			panel.setBounds(14, 13, 462, 233);
			getContentPane().add(panel);
			panel.setLayout(null);
			{
				JScrollPane scrollPane = new JScrollPane();
				scrollPane.setBounds(14, 13, 434, 201);
				panel.add(scrollPane);
				{
					table = new JTable();
					table.setModel(new DefaultTableModel(
						new Object[][] {
						},
						new String[] {
							"\u5386\u53F2\u8D26\u53F7", "\u5386\u53F2\u767B\u5F55\u65F6\u95F4", "\u5386\u53F2\u767B\u5F55\u5730\u70B9"
						}
					));
					scrollPane.setViewportView(table);
				}
			}
		}
		{
			JPanel panel = new JPanel();
			panel.setBounds(14, 259, 462, 62);
			getContentPane().add(panel);
			panel.setLayout(null);
			{
				JButton btnNewButton_1 = new JButton("确认");
				btnNewButton_1.setBounds(335, 18, 113, 27);
				panel.add(btnNewButton_1);
			}
			{
				JLabel lblNewLabel = new JLabel("查看历史账号");
				lblNewLabel.setBounds(14, 22, 96, 18);
				panel.add(lblNewLabel);
			}
			
			textField = new JTextField();
			textField.setBounds(111, 19, 150, 24);
			panel.add(textField);
			textField.setColumns(10);
			{
				JButton btnNewButton = new JButton("查找按钮");
				btnNewButton.setBounds(261, 18, 43, 27);
				btnNewButton.setIcon(new ImageIcon("src\\cn\\lanqiao\\source\\查找图标.jpg"));				
				btnNewButton.addActionListener(new ActionListener() {
					@Override
					public void actionPerformed(ActionEvent e) {
						HistoryAccountJDialog historyAccountJDialog = new HistoryAccountJDialog();
						historyAccountJDialog.setVisible(true);
					}
				});
				panel.add(btnNewButton);
			}
		}
	}
}
